SUIPatternLibrary = {

    initPopup : function(){
        var backgroundPage = chrome.extension.getBackgroundPage();
        this.TemplateManager.ready(function(){
            SUIPatternLibrary.Model = backgroundPage.SUIPatternLibrary.Model
            SUIPatternLibrary.PopupController.init();
        });
        this.TemplateManager.init();
    },

    initBackground : function(){
        this.TemplateManager.ready(function(){
            SUIPatternLibrary.Model.init();
        });
        this.TemplateManager.init();
    },

    initContentScript : function(){
        this.TemplateManager.ready(function(){
            SUIPatternLibrary.Model.init();
            SUIPatternLibrary.ContentScriptController.init();
        });
        this.TemplateManager.init();
    }
    
}